package com.qf.mapper;

import com.qf.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StudentMapper {
    List<Student> selectAll();

    Student selectByStuId(Integer stuId);

    List<Student> selectByGenderAndAddress(String stuGender, String stuAddress);

    List<Student> selectByGenderAndAddressAndGradeId(Map<String, Object> map);

    List<Student> selectByAddressAndGradeId(@Param("addr") String stuAddress, @Param("gid") Integer gradeId);

    List<Student> selectByStuName(String stuName);

    int insert(Student student);

    int update(Student student);

    int delete(Integer stuId);
}
